package indexdto

import "xr-game-server/entity"

type LvDto struct {
	Exp uint64 `json:"exp" dc:"经验"`
	Lv  uint64 `json:"lv" dc:"等级"`
}

func NewLvDto(roleData *entity.PlayerRole) *LvDto {
	return &LvDto{
		Exp: roleData.Exp,
		Lv:  roleData.Level,
	}
}
